#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__

#define FLUSH_NONE 1
#define FLUSH_LINE 2
#define FLUSH_FULL 4

#define SIZE 4096
#define UMASK 0666

#define FORCE 1
#define NORMAL 2

//enum {
//};

typedef struct _MY_IO_FILE
{
  int fileno;
  int flag;
  char outbuffer[SIZE];
  int curr;
  int cap;
}MyFILE;

MyFILE *my_fopen(const char *filename, const char *mode);
void my_fclose(MyFILE *fp);
int my_fwrite(const char *s, int size, MyFILE *fp);
void my_fflush(MyFILE *fp);



#endif
